﻿//初始化
//var def=1;
function mover(object){
	//主菜单
	var mm=document.getElementById("nav"+object);
	mm.className="on"+object;
	//初始主菜单先隐藏效果
//	if(document.getElementById("hiddef").innerText!=object){
//		var mdef=document.getElementById("nav"+document.getElementById("hiddef").innerText);  
//		mdef.className="off"+object; 
//	}
}
function mout(object){
	//主菜单
	var mm=document.getElementById("nav"+object);
	mm.className="off"+object; 
	//初始主菜单还原效果
//	var mdef=document.getElementById("nav"+document.getElementById("hiddef").innerText);
//	mdef.className="on"+object;
}
function click(object){
	var objdef=document.getElementById("hiddef").innerText;
	var mm=document.getElementById("nav"+objdef);
	mm.className="off"+object;
	mm=document.getElementById("nav"+object);
	mm.className="on"+object;
}